package com.oopnet.template.test.springdi.aop;

import java.lang.reflect.Method;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.springframework.cglib.proxy.MethodProxy;
import org.springframework.stereotype.Component;

@Component("aOPInterceptor")
public class AOPInterceptor implements MethodInterceptor{

	
	public void before(){
		System.out.println("Before Method...");
	}

	@Override
	public Object invoke(MethodInvocation invocation) throws Throwable {
		before();
		Object result = invocation.proceed();
		return result;
	}			
    
}  
